package cn.bsuc.infirmary.util;

import lombok.Getter;

@Getter
public class JSONResult {
    //默认操作是成功的
    private boolean success = true;
    //设置一个错误信息变量
    private String msg;

    //错误信息,当错误时调用该信息
    public JSONResult mark(String msg) {
        success = false;
        this.msg = msg;
        return this;
    }
}
